<link href="{{ asset('/admins/css/bootstrap.min.css') }}" rel="stylesheet"> 

@if (session('msg'))
          <div class="alert alert-danger">
              <ul>
                  
          <li>{{ session('msg') }}</li>
                  
            </ul>
            </div>
        @endif

         @if (count($errors) > 0)
          <div class="alert alert-danger">
              <ul>
            @foreach ($errors->all() as $error)       
          <li>{{ $error }}</li>
             @endforeach      
            </ul>
            </div>
      @endif
	@foreach($list as $v)
	<b class="text-primary">商品名称:{{ $v -> name }}</b><br>
	<b class="text-primary">咨询用户:{{ $v -> userName }}</b><br>
	<b class="text-primary">咨询的内容:{{ $v -> coContent}}</b><br>
	<b class="text-primary">咨询的时间:{{ date('Y-m-d H:i:s',$v -> coTime)}}</b><br>
	@endforeach

	@foreach($ob as $k)
	<b class="text-success">回复人:{{ $k -> adminName }}
	回复时间:{{ date('Y-m-d,H:i:s',$k -> coReTime) }}
	回复的内容:{{ $k -> coReContent }}</b><b class='text-danger'><a href="{{ url('/admin/delConsultRe') }}/{{ $k->consultReId }}">删除</a></b><br>

	
	@endforeach


<form action="{{ url('admin/consultRe') }}" method="post">
	{{ csrf_field() }}
	<input type="hidden" name="coReCid" value="{{ $v->consultId }} ">
	<textarea class="form-control" rows="3" name="coReContent"></textarea>
	<input type="submit" value="回复" class="btn btn-default btn-xs">
</form>

